package com.leo.event;

/**
 * @ClassName: AbstractEvent
 * @Description: 事件抽象类
 * @Author: leo825
 * @Date: 2020-02-16 23:42
 * @Version: 1.0
 */
public abstract class AbstractEvent implements Event {

    private static final long serialVersionUID = 1L;

    /**
     * 事件处理的对象
     */
    private EventObject eventObject;

    public AbstractEvent(EventObject eventObject) {
        this.eventObject = eventObject;
    }


    @Override
    public void setEventObject(EventObject eventObject) {
        this.eventObject = eventObject;
    }

    @Override
    public EventObject getEventObject() {
        return this.eventObject;
    }
}
